package com.cmfi.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.cmfi.domain.EnergyMst;
import com.cmfi.domain.EnergyRec;

// TODO 添加@Mapper
@Mapper
public interface EnergyMstDao {
	@Select("SELECT current FROM tbl_energymst where id = 1")
	public EnergyMst getCurrentEnergy();
 
    @Update("update tbl_energymst set current = #{current} where id = 1")
    public int update(EnergyMst energyMst);
}
